package com.dreamcar.auction.entity;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * BrakePad entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "brake_pad", catalog = "assignment")
@DiscriminatorValue("P")
@PrimaryKeyJoinColumn(name="id_brake_pad")
public class BrakePad extends Component implements java.io.Serializable {

	// Fields

	private Integer idBrakePad;
	private String type;

	// Constructors

	// Property accessors
	@Id
	@Column(name = "id_brake_pad", unique = true, nullable = false)
	public Integer getIdBrakePad() {
		return this.idBrakePad;
	}

	public void setIdBrakePad(Integer idBrakePad) {
		this.idBrakePad = idBrakePad;
	}

	@Column(name = "type", length = 45)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

}